home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / README < prev   
Encoding:
Text File  |  1994-08-02  |  4.7 KB  |  130 lines

  1.  
  2.            ~4Dgifts/toolbox/src/exampleCode/games/IndiZone README
  3.  
  4.                              INDIZONE SOURCE CODE
  5.  
  6.     `!' indicates new or updated as of version 4.2
  7.  
  8.  
  9. oort, and sw contain the full source code for three submissions to the 
  10. Indigo Games Contest of June, 1993.  blix, gold, tagh, contain the full 
  11. source code for four submissions to the IndiZone II Games Contest of 
  12. January, 1994.  These submissions are:
  13.  
  14.         oort             vehicular combat on an asteroid
  15.         sw               combat in space
  16.  
  17.         blix             the mighty mouse hero of indizone
  18.         cycles           solo or multiplayer (network) motorcycle game
  19.         gold             synthetic fish bowl simulation
  20.         tagh             variation on the children's game of tag
  21.  !      vroom            slot car racing in the future
  22.  
  23. In order to compile these games, you need to have 5.* loaded on your system,
  24. and also the following software on your machine:
  25.  
  26.         oort             Performer, Motif, libimage, Audio, C
  27.         sw               Inventor, GLX, Motif, Audio, C
  28.  
  29.         blix             libimage, Audio, libfm, GL, C
  30.     cycles           libfm, GL, Audio
  31.         gold             Audio, GL
  32.         tagh             GL
  33.         vroom            OpenGL, -lfpe -lGLw -lXm -lXt -lGL -lX11 -lPW -laudiofile -laudio -lmalloc -lm
  34.  
  35. cycles, oort, sw, tagh, and provide excellent examples of how to 
  36. use networking in a game.
  37.  
  38. If your system is not running some flavor of 5.*, you will not be 
  39. able to compile these programs.
  40.  
  41.  
  42. Here are explicit instructions for how to start each of the games.
  43.  
  44.   blix          requires no specific options to start.  
  45.  
  46.  
  47.  
  48.   cycles        requires no specific options to start.  however:
  49.           cycles [ -i ifaddr ] [ -t ttl ]
  50.      COMMAND LINE OPTIONS
  51.           See also the TCP/IP User's Guide and mrouted(1M).
  52.  
  53.           -i ifaddr   select the outgoing interface address (if you
  54.                       have multiple network interfaces)
  55.  
  56.           -t ttl      select the time to live of multicast packets
  57.                       (default 1).
  58.  
  59.  
  60.  
  61.   gold          requires no specific options to start.  however:
  62.    usage:  gold [-bceflmv]
  63.          -b   don't display the bubbles visible by default
  64.          -c   don't show the controls visible by default
  65.          -e   prevent sexual reproduction from taking place
  66.          -f   keep fish from eating each other (mightn't work--old debug cruft)
  67.          -l   don't display the landscape visible by default
  68.          -m   enable's malloc debugging
  69.          -v   open as 640x480 NTSC video-sized window w/large cursor
  70.  
  71.  
  72.  
  73.  
  74.  
  75.   oort          requires no specific options to start.  
  76.                 NOTE the oort.sh script--unless you have the IndiZone 
  77.                 games data files already loaded underneath 
  78.                 /usr/demos/IndiZone, you will need to explicitly define
  79.                 the OORT_DIR environment variable to point to the relative
  80.                 position of the oort data directory.  The oort.sh script
  81.                 does this before invoking oort.
  82.  
  83.  
  84.  
  85.   sw            for sw (Spacewar) to run, you MUST copy the Spacewar.ad 
  86.                 app-defaults file to /usr/lib/X11/app-defaults/Spacewar.
  87.                 This is necessary because the explosionDirectory and 
  88.                 soundDirectory resources must point to the sw directory
  89.                 which, initially is specified to simply be ".".  
  90.  
  91.                 sw requires that the server be started before sw can be 
  92.                 run.  You can start the server on a single machine for a 
  93.                 game by typing 
  94.  
  95.                    sws &
  96.  
  97.                 All other players will type that machine's name for the 
  98.                 server.
  99.  
  100.                 sw itself requires a number of options.  First, it requires 
  101.                 that you you type in -n callsign, followed by -s server and 
  102.                 a team color, either r (red), g (green), b (blue) or 
  103.                 p (purple).
  104.  
  105.                 As an example, if sws was running on the machine "dessert", 
  106.                 a player called Tom playing on the blue team would start sw 
  107.                 like this:
  108.  
  109.                    sw -n Tom -s dessert b
  110.  
  111.  
  112.       
  113.  
  114.   tagh          To use Tagh from a shell or launch window enter:
  115.            
  116.                    tagh hostname
  117.  
  118.                 where "hostname" is the name of a machine on the network.  
  119.                 That machine will act as a server for the game.  Up to 
  120.                 three players can participate in a game.  For each game, 
  121.                 there should be only one host.  For example, if users on 
  122.                 machines "foo" "bar" and "ding" want to play a game 
  123.                 together, they might all type:
  124.  
  125.                    tagh foo
  126.  
  127.  
  128.  
  129.  
  130.